﻿/*******************************************************************************
 * Copyright © 2017 FriendStar.Framework 版权所有
 * Author: FZH
 * Description: FriendStar快速开发平台
 * Website：http://www.FriendStar.cn
*********************************************************************************/
using System;
using SqlSugar;

namespace FriendStar.Domain.Entity.BOM
{
    /// <summary>
	/// 数据视图 V_XLK_21_MX_MatCardListAcco 对应的数据实体类，数据表描述：
	/// </summary>
    [Serializable]
    [SugarMapping(TableName = "V_XLK_21_MX_MatCardListAcco")]
	public partial class V_XLK_21_MX_MatCardListAccoEntity
    {
        ///<summary>
		///
		///</summary>
        public string MatListID { get; set; } 
        ///<summary>
		///
		///</summary>
        public string UseUnit { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FProductionDate { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FHappenComNO { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FHappenComName { get; set; } 
        ///<summary>
		///
		///</summary>
        public string ProductUnit { get; set; } 
        ///<summary>
		///
		///</summary>
        public string ProductUnitName { get; set; } 
        ///<summary>
		///
		///</summary>
        public string UnitShortName { get; set; } 
        ///<summary>
		///
		///</summary>
        public string ProduWorkshopName { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FProductionNO { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FProductionName { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MatNO { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FQuantity_GB { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialNO { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialCode_YCL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialSizes_BL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string StandardNumber_YCL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialDemand_YCL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialCode_SJBL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialSizes_SJBL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string StandardNumber_SJBL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialDemand_SJBL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string Sign_MP { get; set; } 
        ///<summary>
		///
		///</summary>
        public string RoughsType { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FiberDirection { get; set; } 
        ///<summary>
		///
		///</summary>
        public string RoughsSize { get; set; } 
        ///<summary>
		///
		///</summary>
        public string KZGC { get; set; } 
        ///<summary>
		///
		///</summary>
        public string KFGC { get; set; } 
        ///<summary>
		///
		///</summary>
        public string CZGC { get; set; } 
        ///<summary>
		///
		///</summary>
        public string CFGC { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaterialSizes_J { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FYZJK { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FYKJJ { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FYZJK_GY { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FYKJJ_GY { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? KZLJ { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FQuantity_GBZL { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? PartsNetWeight { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? MaterialQuota_GY { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? MaterialQuota_TL { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? LYL_GY { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? LYL_TL { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FLGG1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FLZL1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FLGG2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FLZL2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FLGG3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? FLZL3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY2 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY3 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX4 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG4 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL4 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY4 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX5 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG5 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL5 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY5 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLFX6 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLGG6 { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? YLSL6 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string YLLY6 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FBZSM { get; set; } 
        ///<summary>
		///
		///</summary>
        public string IsBZGY { get; set; } 
        ///<summary>
		///
		///</summary>
        public string ISImg { get; set; } 
        ///<summary>
		///
		///</summary>
        public byte[] IMG { get; set; } 
        ///<summary>
		///
		///</summary>
        public byte[] IMG1 { get; set; } 
        ///<summary>
		///
		///</summary>
        public string MaintainStatus { get; set; } 
        ///<summary>
		///
		///</summary>
        public string EditStatus { get; set; } 
        ///<summary>
		///
		///</summary>
        public string InputUser { get; set; } 
        ///<summary>
		///
		///</summary>
        public string InputDate { get; set; } 
        ///<summary>
		///
		///</summary>
        public string InputTime { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FAuditingBy { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FAuditingDate { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FAuditingTime { get; set; }


        public string KGC
        {
            get
            {
                if (string.IsNullOrEmpty(KFGC) && string.IsNullOrEmpty(KZGC))
                {
                    return "";
                }
                else
                {
                    return string.Format("（{0}，{1}）", KFGC, KZGC);
                }
            }
        }

        public string CGC
        {
            get
            {
                if (string.IsNullOrEmpty(CFGC) && string.IsNullOrEmpty(CZGC))
                {
                    return "";
                }
                else
                {
                    return string.Format("（{0}，{1}）", CFGC, CZGC);
                }
            }
        }

        public string FYZJK_FYKJJ
        {
            get
            {
                return (FYZJK.HasValue && FYKJJ.HasValue) ? (FYZJK.Value * FYKJJ.Value).ToString("0") : "";
            }
        }

        public string MaterialSizesLast
        {
            get 
            {
                return (!string.IsNullOrEmpty(MaterialSizes_SJBL) && MaterialSizes_SJBL.Length >= 5) ? MaterialSizes_SJBL.Substring(MaterialSizes_SJBL.Length - 5, 5) : "";
            }
        }

        public string MaterialCodeAll
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", MaterialCode_YCL, MaterialCode_SJBL);
            }
        }

        public string MaterialSizesAll
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", MaterialSizes_BL, MaterialSizes_SJBL);
            }
        }

        public string MaterialQuotaAll
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", MaterialQuota_GY, MaterialQuota_TL);
            }
        }

        public string LYL_All
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", LYL_GY, LYL_TL);
            }
        }

        public string StandardNumberAll
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", StandardNumber_YCL, StandardNumber_SJBL);
            }
        }

        public string MaterialDemandAll
        {
            get 
            {
                return string.Format("工艺：{0}<br />实际：{1}", MaterialDemand_YCL, MaterialDemand_SJBL);
            }
        }
    }
}